
/*
 * Filename: g:\espidf_workspace\idf_S3_T-Watch\main\devices\i2c_bus.h
 * Path: g:\espidf_workspace\idf_S3_T-Watch\main\devices
 * Created Date: Friday, June 20th 2025, 3:35:09 pm
 * Author: sss
 * 
 * Copyright (c) 2025 Your Company
 */
#pragma once
#include "driver/i2c_master.h"


#define SENSOR_I2C_BUS I2C_NUM_1

#define SENSOR_I2C_GPIO_SDA GPIO_NUM_10
#define SENSOR_I2C_GPIO_SCL GPIO_NUM_11
#define SENSOR_I2C_MASTER_FREQ_HZ (100 * 1000)
#define SENSOR_I2C_GPIO_PULLUP_ENABLE 1






/**时钟  PCF8563*/
// #define RTC_I2C_ADDR 0x68
#define RTC_GPIO_IRQ GPIO_NUM_17
// #define RTC_GPIO_SDA GPIO_NUM_10
// #define RTC_GPIO_SCL GPIO_NUM_11
/******/

/**电源芯片  AXP2101*/
#define POWER_GPIO_IRQ GPIO_NUM_17
// #define POWER_GPIO_SDA GPIO_NUM_10
// #define POWER_GPIO_SCL GPIO_NUM_11

/**震动 DRV2605*/
// #define VIB_GPIO_SDA GPIO_NUM_10
// #define VIB_GPIO_SCL GPIO_NUM_11

/**加速度传感器 BMA423*/
#define ACCEL_GPIO_IRQ GPIO_NUM_14
// #define ACCEL_GPIO_SDA GPIO_NUM_10
// #define ACCEL_GPIO_SCL GPIO_NUM_11

/**gps  MIA-M10Q*/
#define GPS_TX GPIO_NUM_41
#define GPS_RX GPIO_NUM_42

/**麦克风 PDM MIC*/
#define MIC_GPIO_DATA GPIO_NUM_47
#define MIC_GPIO_CLK GPIO_NUM_44


/**扬声器  Max98357A*/
#define SPK_GPIO_BCK GPIO_NUM_48
#define SPK_GPIO_WS GPIO_NUM_15
#define SPK_GPIO_DATA GPIO_NUM_46


i2c_master_bus_handle_t get_i2c_bus_handle();